import { getAnalysisData } from '@/service/main/analysis/analysis.ts'
import { defineStore } from 'pinia'

interface IAnalysisState {
  amountList: any[]
  // goodsCategoryCount: any[]
  // goodsCategorySale: any[]
  // goodsCategoryFavor: any[]
  // goodsAddressSale: any[]
}
const useAnalysisStore = defineStore('analysis', {
  state: (): IAnalysisState => ({
    amountList: []
  }),
  actions: {
    async setAmountList() {
      const res = await getAnalysisData()
      this.amountList = res.data
      //console.log(this.amountList)
    }
  }
})

export default useAnalysisStore
